|
|
|
|
|
4
Using Visual Basic's Default Controls |
|
|
|
| |
 |
|
|
|
|
Introduction to the Intrinsic Controls |
|
|
|
| |
 |
|
|
|
|
Working with Text |
|
|
|
| |
 |
|
|
|
|
Displaying Text with a Label Control |
|
|
|
| |
 |
|
|
|
|
Entering Text with a Text Box |
|
|
|
| |
 |
|
|
|
|
Controls for Making Choices |
|
|
|
| |
 |
|
|
|
|
The Command Button |
|
|
|
| |
 |
|
|
|
|
Check Boxes |
|
|
|
| |
 |
|
|
|
|
Option Buttons |
|
|
|
| |
 |
|
|
|
|
The List Box |
|
|
|
| |
 |
|
|
|
|
The Combo Box |
|
|
|
| |
 |
|
|
|
|
Special-Purpose Controls |
|
|
|
| |
 |
|
|
|
|
Scrollbars |
|
|
|
| |
 |
|
|
|
|
The Timer Control |
|
|
|
| |
 |
|
|
|
|
Frames |
|
|
|
| |
 |
|
|
|
|
Working with Multiple Controls at Designtime |
|
|
|
| |
 |
|
|
|
|
Selecting Multiple Controls |
|
|
|
| |
 |
|
|
|
|
Using the Properties Window |
|
|
|
| |
 |
|
|
|
|
Using the Form Editor Toolbar |
|
|
|
| |
 |
|
|
|
|
Using the Format Menu |
|
|
|
| |
 |
|
|
|
|
Multiple Controls in a Frame |
|
|
|
| |
 |
|
|
|
|
Working with the Controls Collection |
|
|
|
| |
 |
|
|
|
|
Changing All Controls |
|
|
|
| |
 |
|
|
|
|
Changing Selected Controls |
|
|
|
| |
 |
|
|
|
|
From Here . . . |
|
|
|
| |
|
|
|
|
|
II
Programming with Visual Basic |
|
|
|
| |
|
|
|
|
|
5
Responding to the User with Event Procedures |
|
|
|
| |
 |
|
|
|
|
Introducing Events |
|
|
|
| |
 |
|
|
|
|
Handling Events in Your Programs |
|
|
|
| |
 |
|
|
|
|
Determining When an Event Has Occurred |
|
|
|
| |
 |
|
|
|
|
Types of Events |
|
|
|
| |
 |
|
|
|
|
Writing Event Procedures |
|
|
|
| |
 |
|
|
|
|
Calling an Event Procedure from Code |
|
|
|
| |
 |
|
|
|
|
Understanding Event Sequences |
|
|
|
| |
 |
|
|
|
|
Multiple Events for Each Action |
|
|
|
| |
 |
|
|
|
|
Determining the Order of Events |
|
|
|
| |
 |
|
|
|
|
From Here . . . |
|
|
|
| |
|
|
|
|
|
6
Giving More Control to the User: Menus and Toolbars |
|
|
|
| |
 |
|
|
|
|
Creating a Menu Bar |
|
|
|
| |
 |
|
|
|
|
Common Menus |
|
|
|
| |
 |
|
|
|
|
Setting Up the Main Items |
|
|
|
| |
 |
|
|
|
|
Multiple-Level Menus |
|
|
|
| |
 |
|
|
|
|
Grouping Menu Items |
|
|
|
| |
 |
|
|
|
|
Modifying the Menu |
|
|
|
| |
 |
|
|
|
|
Adding Access Keys and Shortcut Keys for Quick Access |
|
|
|
| |
 |
|
|
|
|
Writing Code for the Menu Items |
|
|
|
| |
 |
|
|
|
|
Optional Settings |
|
|
|
| |
 |
|
|
|
|
Creating Pop-Up Menus |
|
|
|
| |
 |
|
|
|
|
Creating the Menu to Be Displayed |
|
|
|
| |
 |
|
|
|
|
Activating a Pop-Up Menu |
|
|
|
| |
 |
|
|
|
|
Using Toolbars in Visual Basic |
|
|
|
| |
 |
|
|
|
|
Toolbar Basics |
|
|
|
| |
 |
|
|
|
|
Getting the Images for Your Toolbar |
|
|
|
| |
 |
|
|
|
|
Creating a Standard Toolbar |
|
|
|
| |
 |
|
|
|
|
Creating the Toolbar's Buttons |
|
|
|
| |
 |
|
|
|
|
Starting a Toolbar Example |
|
|
|
| |
 |
|
|
|
|
Enabling the Buttons with Code |
|
|
|
| |
 |
|
|
|
|
Creating a Toolbar with Code |
|
|
|
| |
 |
|
|
|
|
Allowing the User to Customize the Toolbar |
|
|
|
| |
 |
|
|
|
|
Using the CoolBar Control |
|
|
|
| |
 |
|
|
|
|
From Here . . . |
|
|
|
| |
|
|
|
|
|
7
Using Dialog Boxes to Get Information |
|
|
|
| |
 |
|
|
|
|
Keeping the User Informed |
|
|
|
| |
 |
|
|
|
|
Understanding the Message Box |
|
|
|
| |
 |
|
|
|
|
Displaying a Message |
|
|
|
| |